/*
 * @Author: 胡晓星
 * @Date: 2024-09-04 15:25:19
 * @LastEditors: 胡晓星
 * @LastEditTime: 2024-12-11 15:43:06
 * @FilePath: \src\views\player\list\api.js
 * @Description:
 */

import { request } from '@/utils'

export default {
  read: (params = {}) => request.get('/player/getAllPlayers', {params}),
  create: data => request.post('/player/addPlayer', data),
  update: data => request.patch(`/player/updatePlayer/${data.id}`, data),
  // 获取球队列表
  getAllTeams: (params = {}) => request.get('/player/getAllTeams', {
    params
  }),
  // delete: id => request.delete(`/user/${id}`),
  // resetPwd: (id, data) => request.patch(`/user/password/reset/${id}`, data),
}
